using UnityGameFramework.Runtime;

namespace LS.UGFUnits
{
    using Unity.VisualScripting;
    
    [UnitCategory("Unity Game Framework/Setting")]
    public abstract class SettingUnit : FrameworkComponentUnit<SettingComponent>
    {
        [DoNotSerialize]
        public override SettingComponent Target
        {
            get
            {
                var com = FrameworkObserver.Observing() ? FrameworkObserver.Setting : null;
                CheckFrameworkAvailable();
                return com;
            }
        }
    }
}